package com.article.dao.base;

import java.util.List;
import java.util.Map;

public interface BaseDao<T> {
    Long countTotal(Map<String, Object> map);

    List<T> listByPage(Map<String, Object> map);

    int save(T t);

    int update(T t);

    int remove(Long id);

    List<T> listByMap(Map<String, Object> map);

    T getById(Long id);

    T getByMap(Map<String, Object> map);

}
